<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('HDFS监控')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="online-form">
                <div class="select-list">
                    <ul>
                        <li>
                            环境：<select name="cluster" th:with="type=${@dict.getType('bigdata_env')}">
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                        </select>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" th:action="@{/business/hdfs/list}" th:method="post" onclick="search2()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                        </li>
                    </ul>
                </div>

            </form>
        </div>
        <div  class="col-sm-12 search-collapse">
            <br/>

            <div class="col-sm-3">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5 class="m-b-md">集群存储总容量:单位GB</h5>
                        <h2 class="text-navy" id = "aCapacityTotalGB">
                        </h2>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5 class="m-b-md">集群存储已使用容量:单位GB</h5>
                        <h2 class="text-navy" id = "aCapacityUsedGB">
                        </h2>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5 class="m-b-md">集群存储剩余容量:单位GB</h5>
                        <h2 class="text-navy" id = "aCapacityRemainingGB">
                        </h2>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5 class="m-b-md">集群非 HDFS 使用容量</h5>
                        <h2 class="text-navy" id = "aCapacityUsedNonDFS">
                        </h2>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5 class="m-b-md">整个集群的客户端连接数</h5>
                        <h2 class="text-navy" id = "aTotalLoad">
                        </h2>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5 class="m-b-md">集群文件总数量</h5>
                        <h2 class="text-navy" id = "aFilesTotal">
                        </h2>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox">
                    <div class="ibox-content">
                        <h5 class="m-b-md">NameNode启动时间</h5>
                        <h2 class="text-navy" id = "nStartTime">
                        </h2>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-sm-12 search-collapse">
            <br/>
            <h5>NameNode</h5>
            <br/>

            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>集群存储总容量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nCapacityTotal"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>集群存储总容量:单位GB</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nCapacityTotalGB"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>集群存储已使用容量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nCapacityUsed"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>集群存储已使用容量:单位GB</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nCapacityUsedGB"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>集群存储剩余容量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nCapacityRemaining"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>集群存储剩余容量:单位GB</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nCapacityRemainingGB"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>集群非 HDFS 使用容量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nCapacityUsedNonDFS"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>整个集群的客户端连接数</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nTotalLoad"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>集群文件总数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nFilesTotal"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>总 BLOCK 数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nBlocksTotal"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>等待被备份的块数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nPendingReplicationBlocks"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>副本数不够的块数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nUnderReplicatedBlocks"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>坏块数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nCorruptBlocks"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>安排要备份的块数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nScheduledReplicationBlocks"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>等待被删除的块数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nPendingDeletionBlocks"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>多余的块数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nExcessBlocks"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>被推迟处理的异常块数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nPostponedMisreplicatedBlocks"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>活的数据节点数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nNumLiveDataNodes"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>已经标记为 Dead 状态的数据节点数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nNumDeadDataNodes"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>下线且 Live 的节点数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nNumDecomLiveDataNodes"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>下线且 Dead 的节点数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nNumDecomDeadDataNodes"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>正在下线的节点数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nNumDecommissioningDataNodes"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>标记为过期状态的 DataNode 数目</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nNumStaleDataNodes"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>Snapshots 数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nSnapshots"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>所有 Datanodes 的卷故障总数</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nVolumeFailuresTotal"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>接收数据速率</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nReceivedBytes"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>发送数据速率</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nSentBytes"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>RPC 调用速率</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nRpcQueueTimeNumOps"></div>
                    </div>
                </div>
            </div>

            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 当前已经使用的 NonHeapMemory 的大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nMemNonHeapUsedM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 配置的 NonHeapCommittedM 的大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nMemNonHeapCommittedM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 当前已经使用的 HeapMemory 的大</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nMemHeapUsedM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM HeapMemory 提交大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nMemHeapCommittedM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 配置的 HeapMemory 的大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nMemHeapMaxM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 运行时可以使用的最大内存大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nMemMaxM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>新生代GC次数/Young GC 次数</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nyoungGcCount"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>新生代GC消耗时间</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nyoungGcTime"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>老年代GC次数/Full GC 次数</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nfullGcCount"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>老年代GC消耗时间</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nfullGcTime"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>处于 BLOCKED 状态的线程数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nThreadsRunnable"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>处于 BLOCKED 状态的线程数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nThreadsBlocked"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>处于 WAITING 状态的线程数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nThreadsWaiting"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>处于 TIMED WAITING 状态的线程数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nThreadsTimedWaiting"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>从上次Checkpoint之后的事务数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nTransactionsSinceLastCheckpoint"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>上一次Checkpoint时间</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nLastCheckpointTime"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>DATANODE 的请求被 QUEUE 在 standby namenode 中的个数</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nPendingDataNodeMessageCount"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>缺失的数据块数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nNumberOfMissingBlocks"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>缺失的数据库数量（rf = 1）</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="nNumberOfMissingBlocksWithReplicationFactorOne"></div>
                    </div>
                </div>
            </div>


        </div>
        </div>

        <div class="col-sm-12 search-collapse">
            <br/>
            <h5>DataNode</h5>
            <br/>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>DataNode HDFS使用量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dDfsUsed"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>DataNode HDFS剩余空间</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dRemaining"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>DataNode HDFS空间总量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dCapacity"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>老年代GC次数/Full GC 次数</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dfullGcCount"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>老年代GC消耗时间</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dfullGcTime"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>新生代GC次数/Young GC 次数</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dyoungGcCount"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>新生代GC消耗时间</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dyoungGcTime"></div>
                    </div>
                </div>
            </div>

            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 当前已经使用的 NonHeapMemory 的大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dMemNonHeapUsedM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 配置的 NonHeapCommittedM 的大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dMemNonHeapCommittedM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 当前已经使用的 HeapMemory 的大</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dMemHeapUsedM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM HeapMemory 提交大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dMemHeapCommittedM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 配置的 HeapMemory 的大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dMemHeapMaxM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>JVM 运行时可以使用的最大内存大小</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dMemMaxM"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>处于 BLOCKED 状态的线程数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dThreadsRunnable"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>处于 BLOCKED 状态的线程数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dThreadsBlocked"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>处于 WAITING 状态的线程数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dThreadsWaiting"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>处于 TIMED WAITING 状态的线程数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dThreadsTimedWaiting"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>启动时间</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dStartTime"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>当前连接数</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dNumOpenConnections"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>网络错误统计</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dDatanodeNetworkErrors"></div>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>DataNode中用于接受Client请求以及其他DataNode请求的线程的数量</h5>
                        <div class="ibox-tools">

                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a onclick="f(7)">7分钟</a></li>
                                <li><a onclick="f(30)">30分钟</a></li>
                                <li><a onclick="f(60)">60分钟</a></li>
                                <li><a onclick="f(720)">12小时</a></li>
                                <li><a onclick="f(1440)">24小时</a></li>
                            </ul>

                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="echarts" id="dXceiverCount"></div>
                    </div>
                </div>
            </div>

        </div>
        <div class="col-sm-12 select-table table-striped">
            <table class="echarts" id="bootstrap-table"></table>
        </div>
    </div>

</div>

<th:block th:include="include :: footer" />
<th:block th:include="include :: echarts-js" />
<script th:inline="javascript">
    //监控内容，链接拼接使用
    var monitorType = "hdfs"
    var prefix = ctx + "business/"+monitorType;

    $(function() {
        var options = {
            uniqueId: "hkey",
            url: prefix + "/list",
            sortName: "hkey",
            sortOrder: "desc",
            showExport: true,
            escape: true,
            pageSize: 500,
            columns: [
                {
                    field: 'hkey',
                    title: '监控指标',
                    sortable: true
                },{
                    field: 'node',
                    title: '节点',
                    sortable: true
                },
                {
                    field: 'hvalue',
                    title: '值'
                },
                {
                    field: 'updateTime',
                    title: '更新时间',
                    sortable: true
                }]
        };
        $.table.init(options);
    });

    $(function () {
        searchBasicInfo()
    })
    function search2(){
        $.table.search()
        searchBasicInfo()
    };

    function searchBasicInfo() {
        //获取需要查看的环境
        var env = $('[name="cluster"]').val()
        var url = "/business/"+monitorType+"/getBasicInfo";
        var data = { "cluster": env }
        //发送post请求，result返回请求结果
        getVersion(url, "post", "json", data, function (result) {
            var nullValue = "-"
            $("#aCapacityTotalGB").text($.common.isEmpty(result.data.aCapacityTotalGB) ? nullValue : result.data.aCapacityTotalGB);
            $("#aCapacityUsedGB").text($.common.isEmpty(result.data.aCapacityUsedGB) ? nullValue : result.data.aCapacityUsedGB);
            $("#aCapacityRemainingGB").text($.common.isEmpty(result.data.aCapacityRemainingGB) ? nullValue : result.data.aCapacityRemainingGB);
            $("#aCapacityUsedNonDFS").text($.common.isEmpty(result.data.aCapacityUsedNonDFS) ? nullValue : result.data.aCapacityUsedNonDFS);
            $("#aTotalLoad").text($.common.isEmpty(result.data.aTotalLoad) ? nullValue : result.data.aTotalLoad);
            $("#aFilesTotal").text($.common.isEmpty(result.data.aFilesTotal) ? nullValue : result.data.aFilesTotal);
            $("#nStartTime").text($.common.isEmpty(result.data.nStartTime) ? nullValue : result.data.nStartTime);
            //刷新折线图
            f(defaultTime)

        })
    }

    function getVersion(url, type, dataType, data, callback){
        var config = {
            url: url,
            type: type,
            dataType: dataType,
            data: data,
            success: function(result) {
                if (typeof callback == "function") {
                    callback(result);
                }
            }
        };
        $.ajax(config)
    };


    //默认查询时间
    var defaultTime = "7"
    $(function () {
        //初始化刷新折线图
        f(defaultTime)
    });

    //刷新折线图
    function f(time) {
        //获取需要查看的环境
        var env = $('[name="cluster"]').val()
        var url = "/business/"+monitorType+"Line/getBasicInfo";
        var data = { "cluster": env , "time": time}
        getVersion(url, "post", "json", data, function (result) {
            setZXT("nCapacityTotal",result)
            setZXT("nCapacityTotalGB",result)
            setZXT("nCapacityUsed",result)
            setZXT("nCapacityUsedGB",result)
            setZXT("nCapacityRemaining",result)
            setZXT("nCapacityRemainingGB",result)
            setZXT("nCapacityUsedNonDFS",result)
            setZXT("nTotalLoad",result)
            setZXT("nFilesTotal",result)
            setZXT("nBlocksTotal",result)
            setZXT("nPendingReplicationBlocks",result)
            setZXT("nUnderReplicatedBlocks",result)
            setZXT("nCorruptBlocks",result)
            setZXT("nScheduledReplicationBlocks",result)
            setZXT("nPendingDeletionBlocks",result)
            setZXT("nExcessBlocks",result)
            setZXT("nPostponedMisreplicatedBlocks",result)
            setZXT("nNumLiveDataNodes",result)
            setZXT("nNumDeadDataNodes",result)
            setZXT("nNumDecomLiveDataNodes",result)
            setZXT("nNumDecomDeadDataNodes",result)
            setZXT("nNumDecommissioningDataNodes",result)
            setZXT("nNumStaleDataNodes",result)
            setZXT("nSnapshots",result)
            setZXT("nVolumeFailuresTotal",result)
            setZXT("nReceivedBytes",result)
            setZXT("nSentBytes",result)
            setZXT("nRpcQueueTimeNumOps",result)
            setZXT("nMemNonHeapUsedM",result)
            setZXT("nMemNonHeapCommittedM",result)
            setZXT("nMemHeapUsedM",result)
            setZXT("nMemHeapCommittedM",result)
            setZXT("nMemHeapMaxM",result)
            setZXT("nMemMaxM",result)
            setZXT("nfullGcCount",result)
            setZXT("nfullGcTime",result)
            setZXT("nyoungGcCount",result)
            setZXT("nyoungGcTime",result)
            setZXT("nThreadsRunnable",result)
            setZXT("nThreadsBlocked",result)
            setZXT("nThreadsWaiting",result)
            setZXT("nThreadsTimedWaiting",result)
            setZXT("nTransactionsSinceLastCheckpoint",result)
            setZXT("nLastCheckpointTime",result)
            setZXT("nPendingDataNodeMessageCount",result)
            setZXT("nNumberOfMissingBlocks",result)
            setZXT("nNumberOfMissingBlocksWithReplicationFactorOne",result)

            //DataNode
            setZXT("dDfsUsed",result)
            setZXT("dRemaining",result)
            setZXT("dCapacity",result)
            setZXT("dfullGcCount",result)
            setZXT("dfullGcTime",result)
            setZXT("dyoungGcCount",result)
            setZXT("dyoungGcTime",result)
            setZXT("dMemNonHeapUsedM",result)
            setZXT("dMemNonHeapCommittedM",result)
            setZXT("dMemHeapUsedM",result)
            setZXT("dMemHeapCommittedM",result)
            setZXT("dMemHeapMaxM",result)
            setZXT("dMemMaxM",result)
            setZXT("dThreadsRunnable",result)
            setZXT("dThreadsBlocked",result)
            setZXT("dThreadsWaiting",result)
            setZXT("dThreadsTimedWaiting",result)
            setZXT("dStartTime",result)
            setZXT("dNumOpenConnections",result)
            setZXT("dDatanodeNetworkErrors",result)
            setZXT("dXceiverCount",result)
        })
    }
    function setZXT(id,result){
        var lineChart = echarts.init(document.getElementById(id));
        lineChart.setOption({
            tooltip : {
                trigger: 'axis'
            },
            legend: {
                //https://blog.csdn.net/chen__cheng/article/details/118388833
                data: setDesc(result.data,id),
                orient: 'horizontal',
                x:'center',
                y:'top'
            },
            grid:{
                x:40,
                x2:40,
                y2:24
            },
            xAxis : [
                {
                    type : 'category',
                    boundaryGap : false,
                    data : setX(result.data,id)
                }
            ],
            yAxis : [
                {
                    type : 'value',
                    axisLabel : {
                        formatter: '{value}'
                    }
                }
            ],
            series: setService(result.data,id)
        });
        $(window).resize(lineChart.resize);
    }
    //设置横坐标
    function setX(data,dataType) {
        var datum = data[dataType];
        var result = []

        for(var json in datum){
            if(json == "time"){
                return datum[json]
                // var datumElement = datum[json];
                // for (var i = 0; i < datumElement.length; i++) {
                //     var jsonElement = datumElement[i];
                //     result.push(jsonElement.substr(11))
                // }
            }
        }
        // return result

    }
    //设置说明
    function setDesc(data,dataType) {
        var desc = []
        var datum = data[dataType];
        for(var json in datum){
            if(json != "time"){
                desc.push(json)
            }
        }
        return desc
    }

    function setService(data,dataType) {
        var series = []

        var datum = data[dataType];
        // if(datum==undefined){
        //     var xyData = [0];
        //     var item = {
        //         type: 'line',
        //         data: xyData
        //     }
        //     series.push(item)
        //     console.log("112233")
        //     return series
        // }
        for(var json in datum){
            if(json == "time"){

            }else{
                var xyData = [];
                var datumElement = datum[json];
                for (var i = 0; i < datumElement.length; i++) {
                    var jsonElement = datumElement[i];
                    xyData.push(jsonElement)
                }
                var item = {
                    name: json,
                    type: 'line',
                    data: xyData
                }
                series.push(item)
            }
        }
        return series

    }

</script>

</body>
</html>